package com.li.shop.service;

import com.li.shop.domain.Shopcard;
import com.li.shop.domain.ShopcardExample;

import java.util.List;

public interface ShopCardService {

    //保存商品信息到购物车的表中
    int insert(Shopcard shopcard);
    //根据id查询当前用户购物车中的pid
    int selectByUid(String uid);

    //当购物车存在时候，更新购物车的信息
    int updateById(Shopcard shopcard);
    long countByExample(ShopcardExample example);

    //手写的关联查询
    List<Shopcard> searchgoods(String id);
    int update(String id);

    //根据u_id查询商品列表
    List<Shopcard> searchproduct(String uid);


    Shopcard s(String id);

    int deleteCartShopByPrimaryKey(String id);
}
